//
//  BadgeView.h
//  etionUI
//
//  Created by wjxfhxy on 14-9-21.
//  Copyright (c) 2014年 GuangZhouXuanWu. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, XUIBadgeViewType)
{
    XUIBadgeViewTypeNone,
    XUIBadgeViewTypeByTextStyle,
    XUIBadgeViewTypeByPointStyle,
};

typedef NS_ENUM(NSUInteger,XUIBadgeViewAlignment)
{
    XUIBadgeViewAlignmentByAny = 0,
    XUIBadgeViewAlignmentByTopLeft,
    XUIBadgeViewAlignmentByTopRight,
    XUIBadgeViewAlignmentByTopCenter,
    XUIBadgeViewAlignmentByCenterLeft,
    XUIBadgeViewAlignmentByCenterRight,
    XUIBadgeViewAlignmentByBottomLeft,
    XUIBadgeViewAlignmentByBottomRight,
    XUIBadgeViewAlignmentByBottomCenter,
    XUIBadgeViewAlignmentByCenter
};

@interface XUIBadgeView : UIView<UIViewExtendDelegate>

@property(nonatomic,assign,readonly) XUIBadgeViewType badgeViewType;

@property(nonatomic,retain) NSString *text;

@property(nonatomic,retain) UIColor *bgColor;

@property(nonatomic,assign) XUIBadgeViewAlignment badgeViewAlignment;

@property(nonatomic,assign) CGPoint badgeViewCenterOffset;

+(XUIBadgeView*)badgeViewWithBadgeViewType:(XUIBadgeViewType)badgeViewType andParentView:(UIView*)parentView byAlignment:(XUIBadgeViewAlignment)alignment;

+(XUIBadgeView*)badgeViewWithBadgeViewType:(XUIBadgeViewType)badgeViewType andParentView:(UIView*)parentView;

@end
